<%=content_for :head do%> <title>Listing products</title>
<%end%>
<%= render "shared/search"%>
<%= render "shared/logon"%>
<%= render "shared/giohang"%>
<%= render "shared/footer"%>
<%= render "shared/menu"%>

<%if @products %>
<div>
	<div id = "showProduct_image">
		<%= image_tag(@products.image, :size => "300x400",:class => "img_pro")%>
	</div>
	<div id="showProduct_details">
		<%= label_tag 'name', "Titile:"%> <%=@products.title%><br />
		<%= label_tag 'price', "price:"%> <%=@products.price%><br />
		<%= label_tag 'kind', "kind:"%> <%=@products.kind%><br />
		<%=link_to "thêm vào giỏ hàng", muasam_themvaogio_path, :params =>{:product_id => @products.id}%>
	</div>
	<br />
	<div id="showProduct_decriptions">
		<%= label_tag 'decriptions', "decription:"%> <%=@products.decription%>
	</div>
</div>
<%else%>
product not found
<%end%>
